import mockjs from 'mockjs'
 const users:any = mockjs.mock({
    "data|100":[
        {
            address:'@city',
            username:"@cname",
            'salary|4000-30000':1000,
            img:"@image('200x100', '#00405d', '#FFF', 'Mock.js')",
            'job|1':['web','java','python','php'],
            'value|1-100':1,
            "tyep:0-2":1
        }
    ]
 })
export default {
    'get /api/users': (req:any, res:any) => {
        // 添加跨域请求头
        res.status(200).json({
            code:200,
            msg:"查询成功",
            data:users
        })
      }
}
